package org.xteam.sled.semantic;

public class Range {
				
	private int low;
	private int high;
	
	public Range(int value) {
		this.low = value;
		this.high = value+1;
	}

	public Range(int low, int high) {
		this.low = low;
		this.high = high;
	}
	
	public int size() {
		return high - low;
	}

	public int low() {
		return low;
	}

	public int high() {
		return high;
	}
	
	public int width() {
		return high - low;
	}
	
	public String toString() {
		return "[" + low + ":" + high + "]"; 
	}

}
